<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
/* <![CDATA[ */

table, td
{
    border-color: #666;
    border-style: solid;
}
table, th
{
    border-color: #666;
    border-style: solid;
}

table
{
    border-width: 0 0 1px 1px;
    border-spacing: 0;
    border-collapse: collapse;
}
 
td
{
    margin: 0;
    padding: 4px;
    border-width: 1px 1px 0 0;
}
th
{
    margin: 0;
    padding: 4px;
    border-width: 1px 1px 0 0;
}

/* ]]> */
</style>
</head>

<body style="font-family:Arial, Helvetica, sans-serif">
<table width="1000" border="0" cellspacing="1" cellpadding="5">
  <tr>
    <th scope="col">条码</th>
    <th scope="col">产品</th>
    <th scope="col">仓库（TI）<br />
    出货量</th>
    <th scope="col">总销量<br />
    （GO）</th>
    <th scope="col">不良品<br />
    （FO）<br /></th>
    <th scope="col">仓库<br />
    存量</th>
    <th scope="col" style="background-color:#FC0">建议<br />
    订货</th>
  </tr>
<?php foreach($this->arrRes as $k => $v){?>  
  <tr>
    <td><?php echo $v[1]?></td>
    <td><?php echo $v[2]?></td>
    <td><?php echo $v[3]?></td>
    <td><?php echo $v[4]?></td>
    <td><?php echo $v[5]?><span style="font-size:12px;" >(<?php echo ( $v[5]>0 && $v[4]>0 )?round($v[5]/$v[4]*100,1)."%":""; ?>)<span></td>
    <td><?php echo $v[6]?></td>
    <td style="background-color:#FC0" ><?php echo $v[7]?></td>
  </tr>
<?php } ?>
</table>

</body>
</html>
